package top.myliangsl.newsapplets.domain.po.jdApi;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;


/**
 * 新闻详情列表
 * @author xiaoliang
 */
@NoArgsConstructor
@Data
@AllArgsConstructor
public class JdNewsDto {


    private String code;
    private Boolean charge;
    private String msg;
    private ResultDTO result;
    private String requestId;

    @NoArgsConstructor
    @Data
    public static class ResultDTO {
        private Integer status;
        private String msg;
        private ResultDTO.ResultChannelDTO result;

        @NoArgsConstructor
        @Data
        public static class ResultChannelDTO {
            private String channel;
            private Integer num;
            private List<ListDTO> list;
        }
    }

    @NoArgsConstructor
    @Data
    public static class ListDTO {
        private String title;
        private LocalDateTime time;
        private String src;
        private String category;
        private String pic;
        private String url;
        private String weburl;
        private String content;
    }
}
